import 'amfe-flexible'
import 'babel-polyfill'
import './registerServiceWorker'
import HeaderApp from '@/components/AppHeader'
import FooterApp from '@/components/AppFooter'

import Vue from 'vue'
import axios from 'axios'
import App from './App.vue'
import utils from './viewUtils/utils'
import VueI18n from 'vue-i18n'
import store from './store/store'
import Mui from 'vue-awesome-mui'
import router from './routers/router'


Vue.prototype.$axios = axios;
Vue.prototype.$utils = utils;
Vue.config.productionTip = false;


Vue.use(Mui);
Vue.use(VueI18n);
Vue.use(HeaderApp);
Vue.use(FooterApp);


const i18n = new VueI18n({
  locale: 'zh', // 语言标识
  messages: {
    'zh': require('./i18n/zh'),
    'en': require('./i18n/en'),
    'rc': require('./i18n/rc')
  }
});

new Vue({
  router,
  store,
  i18n,
  render: h => h(App)
}).$mount('#app');

